From: Andrew Zaech Date: Sat, 10 Apr 2021 13:02:31 +0000 (+0000) Subject: util: Use fade_margins in ensureActorVisibleInScrollView function X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~65 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ce4ece2c448e4000538a7559146ddec7470df288;p=gnome-shell.git util: Use fade_margins in ensureActorVisibleInScrollView function Commit f60a469a34 removed vfade_offset in favor of fade_margins. Util.ensureActorVisibleInScrollView function needs to be adjusted accordingly. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4080 Part-of: --- diff --git a/js/misc/util.js b/js/misc/util.js index 572cee7bf..8139d3f47 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -370,7 +370,7 @@ function ensureActorVisibleInScrollView(scrollView, actor) { let offset = 0; let vfade = scrollView.get_effect("fade"); if (vfade) - offset = vfade.vfade_offset; + offset = vfade.fade_margins.top; let box = actor.get_allocation_box(); let y1 = box.y1, y2 = box.y2;